<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>订单信息新增</title>
    <style rel="stylesheet">
        #maindiv{
            margin: 50px auto;
            width: 40%;
        }
    </style>
    <!--引入bootstrap的css文件-->
    <link href="${pageContext.request.contextPath}/static/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">
    <!--引入jquery，注意：jquery要在js文件之前引入，因为bootstrap使用了jquery框架-->
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/jQuery-1.12.4/jquery-1.12.4.js"></script>
    <!--引入bootstrap的js文件-->
    <script src="${pageContext.request.contextPath}/static/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
</head>
<body>
<div id="maindiv">
    <form class="form-horizontal" action="${pageContext.request.contextPath}/saveOrUpdateIndent" method="post"
          enctype="multipart/form-data">
        <div class="form-group">
            <label class="col-sm-3 control-label">订单名</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" id="inName" name="inName" placeholder="请输入订单名">
            </div><br><br>
            <label class="col-sm-3 control-label">日期</label>
            <div class="col-sm-5">
                <input type="date" class="form-control" id="inDate" name="inDate" placeholder="请输入日期">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">用户id</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" id="usId" name="usId" placeholder="请输入用户id">
            </div> <br><br>
            <label class="col-sm-3 control-label">产品id</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" id="prId" name="prId" placeholder="请输入产品id">
            </div>
            <br><br>
            <label class="col-sm-3 control-label">产品数量</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" id="prCount" name="prCount" value=document.forms["myForm"]["adName"].value;>
            </div>
            <br><br>
            <label class="col-sm-3 control-label">产品价格</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" id="prPrice" name="prPrice" placeholder="请输入产品价格">
            </div>
            <br><br>
            <label class="col-sm-3 control-label">订单价格</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" id="inPrice" name="inPrice" placeholder="请输入订单价格">
            </div>
        </div>

        <div class="form-group">

        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-default">确定</button>
            </div>
        </div>
    </form>
</div>
</body>
</html>
